package net.tautausan.plist
{
   import flash.utils.Proxy;
   import flash.utils.flash_proxy;
   
   public class PlistElement extends Proxy
   {
       
      
      protected var x:XML;
      
      protected var data;
      
      public function PlistElement(param1:XML)
      {
         super();
         this.x = param1;
         this.data = this.object;
      }
      
      override flash_proxy function getProperty(param1:*) : *
      {
         var _loc2_:* = this.object;
         if(_loc2_ && _loc2_[param1])
         {
            return _loc2_[param1];
         }
         return null;
      }
      
      override flash_proxy function callProperty(param1:*, ... rest) : *
      {
         var _loc3_:* = this.object;
         if(rest.length < 1)
         {
            return _loc3_[param1]();
         }
         return _loc3_[param1](rest);
      }
      
      public function set xml(param1:XML) : void
      {
         this.x = param1;
         this.data = this.object;
      }
      
      public function get xml() : XML
      {
         return this.x;
      }
      
      public function get object() : *
      {
         return this.data;
      }
   }
}
